package cn.kgc.spring.day03.service.impl;

import cn.kgc.spring.day03.mapper.UserMapper;
import cn.kgc.spring.day03.service.UserService;

/**
 * @author 课工场
 * @date 2024/7/15
 * @description
 *   UserServiceImpl   -> userServiceImpl
 */
// @Service
public class UserServiceImpl implements UserService {


    // @Autowired
    private UserMapper userMapper;


    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    public Boolean deleteUser(Integer id) {
        System.out.println("--------------UserServiceImpl----------------");
        Integer line = userMapper.deleteUser(id);
        return line == 1;
    }

}
